200
|
How do I arrange my columns on multiple lines
![](images/excomboboxq200.png)
with ComboBox1 do
begin
HeaderHeight := 32;
(IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).HTMLCaption := 'Line 1<br>Line 2';
end
|
199
|
How can I display all cells using HTML format
![](images/excomboboxq199.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('HTML')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellCaptionFormat] := OleVariant(1);
Items.AddItem('<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.');
end
|
198
|
How can I display all cells using multiple lines
![](images/excomboboxq198.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('MultipleLine')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellSingleLine] := OleVariant(False);
(IUnknown(Columns.Add('SingleLine')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellSingleLine] := OleVariant(True);
with Items do
begin
CellCaption[OleVariant(AddItem('This is a bit of long text that should break the line')),OleVariant(1)] := 'this is a bit of long text that''s displayed on a single line';
end;
end
|
197
|
How do change the vertical alignment for all cells in the column
![](images/excomboboxq197.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('MultipleLine')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellSingleLine] := OleVariant(False);
(IUnknown(Columns.Add('VAlign')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellVAlignment] := OleVariant(2);
with Items do
begin
CellCaption[OleVariant(AddItem('This is a bit of long text that should break the line')),OleVariant(1)] := 'bottom';
end;
with Items do
begin
CellCaption[OleVariant(AddItem('This is a bit of long text that should break the line')),OleVariant(1)] := 'bottom';
end;
end
|
196
|
How do change the foreground color for all cells in the column
![](images/excomboboxq196.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('ForeColor')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellForeColor] := OleVariant(255);
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
195
|
How do change the background color for all cells in the column
![](images/excomboboxq195.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('BackColor')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellBackColor] := OleVariant(255);
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
194
|
How do I show buttons for all cells in the column
![](images/excomboboxq194.png)
with ComboBox1 do
begin
with (IUnknown(Columns.Add('Button')) as EXCOMBOBOXLib_TLB.Column) do
begin
Def[EXCOMBOBOXLib_TLB.exCellHasButton] := OleVariant(True);
Def[EXCOMBOBOXLib_TLB.exCellButtonAutoWidth] := OleVariant(True);
end;
Items.AddItem(' Button 1 ');
Items.AddItem(' Button 2 ');
end
|
193
|
How do I show buttons for all cells in the column
![](images/excomboboxq193.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Button')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasButton] := OleVariant(True);
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
192
|
How do I display radio buttons for all cells in the column
![](images/excomboboxq192.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Radio')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasRadioButton] := OleVariant(True);
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
191
|
How do I display checkboxes for all cells in the column
![](images/excomboboxq191.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Check')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasCheckBox] := OleVariant(True);
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
190
|
How can I display a tooltip when the cursor hovers the column
![](images/excomboboxq190.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('tooltip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'This is a bit of text that is shown when user hovers the column.';
end
|
189
|
Is there any function to assign a key to a column instead using its name or capion
![](images/excomboboxq189.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Data')) as EXCOMBOBOXLib_TLB.Column).Key := 'DKey';
Columns.Item['DKey'].Caption := 'new caption';
end
|
188
|
Is there any function to assign any extra data to a column
![](images/excomboboxq188.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Data')) as EXCOMBOBOXLib_TLB.Column).Data := 'your extra data';
end
|
187
|
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
![](images/excomboboxq187.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Sort')) as EXCOMBOBOXLib_TLB.Column).DefaultSortOrder := True;
end
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property
![](images/excomboboxq186.png)
with ComboBox1 do
begin
with (IUnknown(Columns.Add('Auto')) as EXCOMBOBOXLib_TLB.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
MaxWidthAutoResize := 128;
end;
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property
![](images/excomboboxq185.png)
with ComboBox1 do
begin
with (IUnknown(Columns.Add('Auto')) as EXCOMBOBOXLib_TLB.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
end;
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
184
|
Is there any option to resize the column based on its data, captions
![](images/excomboboxq184.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('A')) as EXCOMBOBOXLib_TLB.Column).WidthAutoResize := True;
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
183
|
How can I align the icon in the column's header in the center
![](images/excomboboxq183.png)
with ComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXCOMBOBOXLib_TLB.CenterAlignment;
end;
end
|
182
|
How do I align the icon in the column's header to the right
![](images/excomboboxq182.png)
with ComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (IUnknown(Columns.Add('ColumnName')) as EXCOMBOBOXLib_TLB.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
end;
end
|
181
|
How do I show or hide the sorting icons, but still need sorting
![](images/excomboboxq181.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Sorted')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortAscending;
Columns.Item[OleVariant(0)].DisplaySortIcon := False;
end
|
180
|
How do I enable or disable the entire column
![](images/excomboboxq180.png)
with ComboBox1 do
begin
Columns.Add('C1');
(IUnknown(Columns.Add('Disabled')) as EXCOMBOBOXLib_TLB.Column).Enabled := False;
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(0))),OleVariant(1)] := '0.1';
end;
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(1))),OleVariant(1)] := '1.1';
end;
end
|
179
|
How do I disable drag and drop columns
![](images/excomboboxq179.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).AllowDragging := False;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).AllowDragging := False;
end
|
178
|
How do I disable resizing a column at runtime
![](images/excomboboxq178.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Unsizable')) as EXCOMBOBOXLib_TLB.Column).AllowSizing := False;
Columns.Add('C2');
Columns.Add('C3');
Columns.Add('C4');
end
|
177
|
How can I align the column to the right, and its caption too
![](images/excomboboxq177.png)
with ComboBox1 do
begin
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
Alignment := EXCOMBOBOXLib_TLB.RightAlignment;
HeaderAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
end;
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
176
|
How can I align the column to the right
![](images/excomboboxq176.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column).Alignment := EXCOMBOBOXLib_TLB.RightAlignment;
Items.AddItem(OleVariant(0));
Items.AddItem(OleVariant(1));
end
|
175
|
How do I change the column's caption
![](images/excomboboxq175.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column).Caption := 'new caption';
end
|
174
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
![](images/excomboboxq174.png)
with ComboBox1 do
begin
FormatAnchor[False] := '<b><u><fgcolor=880000> </fgcolor></u></b>';
Columns.Add('Column');
with Items do
begin
CellCaptionFormat[OleVariant(AddItem('Just an <a1>anchor</a> element ...')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
end;
with Items do
begin
CellCaptionFormat[OleVariant(AddItem('Just another <a2>anchor</a> element ...')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
end;
Items.AddItem('next item');
end
|
173
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
![](images/excomboboxq173.png)
with ComboBox1 do
begin
FormatAnchor[True] := '<b><u><fgcolor=FF0000> </fgcolor></u></b>';
Columns.Add('Column');
with Items do
begin
CellCaptionFormat[OleVariant(AddItem('Just an <a1>anchor</a> element ...')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
end;
with Items do
begin
CellCaptionFormat[OleVariant(AddItem('Just another <a2>anchor</a> element ...')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
end;
end
|
172
|
Can I change the font for the tooltip
![](images/excomboboxq172.png)
with ComboBox1 do
begin
ToolTipDelay := 1;
ToolTipWidth := 364;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := '<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>';
end
|
171
|
Can I change the font for the tooltip
![](images/excomboboxq171.png)
with ComboBox1 do
begin
ToolTipDelay := 1;
with ToolTipFont do
begin
Name := 'Tahoma';
Size := 14;
end;
ToolTipWidth := 364;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
170
|
Can I change the order of the buttons in the scroll bar
![](images/excomboboxq170.png)
with ComboBox1 do
begin
ScrollOrderParts[EXCOMBOBOXLib_TLB.exHScroll] := 't,l,r';
ScrollOrderParts[EXCOMBOBOXLib_TLB.exVScroll] := 't,l,r';
end
|
169
|
The thumb size seems to be very small. Can I make it bigger
![](images/excomboboxq169.png)
with ComboBox1 do
begin
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
ScrollThumbSize[EXCOMBOBOXLib_TLB.exHScroll] := 64;
end
|
168
|
How can I display my text on the scroll bar, using a different font
![](images/excomboboxq168.png)
with ComboBox1 do
begin
ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exThumbPart] := 'This is <s><font Tahoma;12> just </font></s> text';
ColumnAutoResize := False;
ScrollHeight := 20;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
end
|
167
|
How can I display my text on the scroll bar, using a different font
![](images/excomboboxq167.png)
with ComboBox1 do
begin
ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exThumbPart] := 'This is just a text';
ScrollFont[EXCOMBOBOXLib_TLB.exHScroll].Size := 12;
ColumnAutoResize := False;
ScrollHeight := 20;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
end
|
166
|
How can I display my text on the scroll bar
![](images/excomboboxq166.png)
with ComboBox1 do
begin
ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exThumbPart] := 'this is just a text';
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
end
|
165
|
How do I enlarge or change the size of the control's scrollbars
![](images/excomboboxq165.png)
with ComboBox1 do
begin
ScrollHeight := 18;
ScrollWidth := 18;
ScrollButtonWidth := 18;
ScrollButtonHeight := 18;
end
|
164
|
How do I assign a tooltip to a scrollbar
![](images/excomboboxq164.png)
with ComboBox1 do
begin
ScrollToolTip[EXCOMBOBOXLib_TLB.exHScroll] := 'This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar';
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).Width := 256;
end
|
163
|
How do I assign an icon to the button in the scrollbar
![](images/excomboboxq163.png)
with ComboBox1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB1Part] := True;
ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB1Part] := '<img>1</img>';
ScrollHeight := 18;
ScrollButtonWidth := 18;
end
|
162
|
I need to add a button in the scroll bar. Is this possible
![](images/excomboboxq162.png)
with ComboBox1 do
begin
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB1Part] := True;
ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB1Part] := '1';
end
|
161
|
Can I display an additional buttons in the scroll bar
![](images/excomboboxq161.png)
with ComboBox1 do
begin
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB1Part] := True;
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLeftB2Part] := True;
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exRightB6Part] := True;
ScrollPartVisible[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exRightB5Part] := True;
end
|
160
|
How can I display a custom size picture to a cell or item
![](images/excomboboxq160.png)
with ComboBox1 do
begin
DefaultItemHeight := 48;
Columns.Add('C1');
with Items do
begin
CellPicture[OleVariant(AddItem('Text')),OleVariant(0)] := ComboBox1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)');
end;
end
|
159
|
How can I display a multiple pictures to a cell or item
![](images/excomboboxq159.png)
with ComboBox1 do
begin
DefaultItemHeight := 48;
HTMLPicture['pic1'] := 'c:\exontrol\images\zipdisk.gif';
HTMLPicture['pic2'] := 'c:\exontrol\images\auction.gif';
Columns.Add('C1');
with Items do
begin
CellCaptionFormat[OleVariant(AddItem('<img>pic1</img> Text <img>pic2</img> another text ...')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
end;
end
|
158
|
How do I change the column's foreground color for numbers between an interval - Range
![](images/excomboboxq158.png)
with ComboBox1 do
begin
with ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null) do
begin
Bold := True;
ForeColor := $ff;
ApplyTo := EXCOMBOBOXLib_TLB.FormatApplyToEnum($1);
end;
Columns.Add('N1');
Columns.Add('N2');
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(1))),OleVariant(1)] := OleVariant(2);
end;
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(3))),OleVariant(1)] := OleVariant(3);
end;
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(10))),OleVariant(1)] := OleVariant(11);
end;
with Items do
begin
CellCaption[OleVariant(AddItem(OleVariant(13))),OleVariant(1)] := OleVariant(31);
end;
SearchColumnIndex := 1;
end
|
157
|
How do I change the item's foreground color for numbers between an interval - Range
![](images/excomboboxq157.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null).ForeColor := $ff;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
156
|
How do I change the item's background color for numbers less than a value
![](images/excomboboxq156.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 < 10',Null).BackColor := $ff;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
155
|
How do I underline the numbers greater than a value
![](images/excomboboxq155.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Underline := True;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
154
|
How do I highlight in italic the numbers greater than a value
![](images/excomboboxq154.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).StrikeOut := True;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
153
|
How do I highlight in italic the numbers greater than a value
![](images/excomboboxq153.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Italic := True;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
152
|
How do I highlight in bold the numbers greater than a value
![](images/excomboboxq152.png)
with ComboBox1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Bold := True;
Columns.Add('Numbers');
Items.AddItem(OleVariant(1));
Items.AddItem(OleVariant(2));
Items.AddItem(OleVariant(10));
Items.AddItem(OleVariant(20));
end
|
151
|
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
![](images/excomboboxq151.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
HasButtons := EXCOMBOBOXLib_TLB.exCustom;
HasButtonsCustom[False] := 16777216;
HasButtonsCustom[True] := 33554432;
Columns.Add('Column');
with Items do
begin
h := AddItem('Root 1');
InsertItem(h,Null,'Child 1');
InsertItem(h,Null,'Child 2');
ExpandItem[h] := True;
h := AddItem('Root 2');
InsertItem(h,Null,'Child');
end;
end
|
150
|
Can I use your EBN files to change the visual appearance for radio buttons
![](images/excomboboxq150.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
RadioImage[False] := 16777216;
RadioImage[True] := 33554432;
(IUnknown(Columns.Add('Radio')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasRadioButton] := OleVariant(True);
with Items do
begin
AddItem('Radio 1');
CellState[OleVariant(AddItem('Radio 2')),OleVariant(0)] := 1;
AddItem('Radio 3');
end;
end
|
149
|
Can I use your EBN files to change the visual appearance for checkbox cells
![](images/excomboboxq149.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
CheckImage[EXCOMBOBOXLib_TLB.Unchecked] := 16777216;
CheckImage[EXCOMBOBOXLib_TLB.Checked] := 33554432;
(IUnknown(Columns.Add('Check')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasCheckBox] := OleVariant(True);
with Items do
begin
AddItem('Check 1');
CellState[OleVariant(AddItem('Check 2')),OleVariant(0)] := 1;
end;
end
|
148
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
![](images/excomboboxq148.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXCOMBOBOXLib_TLB.exHSThumb] := $1000000;
Background[EXCOMBOBOXLib_TLB.exHSThumbP] := $2000000;
Background[EXCOMBOBOXLib_TLB.exHSThumbH] := $3000000;
Background[EXCOMBOBOXLib_TLB.exVSThumb] := $1000000;
Background[EXCOMBOBOXLib_TLB.exVSThumbP] := $2000000;
Background[EXCOMBOBOXLib_TLB.exVSThumbH] := $3000000;
ColumnAutoResize := False;
ScrollBySingleLine := True;
(IUnknown(Columns.Add('S')) as EXCOMBOBOXLib_TLB.Column).Width := 483;
with Items do
begin
ItemHeight[AddItem('Item 1')] := 248;
end;
Items.AddItem('Item 2');
end
|
147
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
![](images/excomboboxq147.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXCOMBOBOXLib_TLB.exHSThumb] := $1000000;
Background[EXCOMBOBOXLib_TLB.exHSThumbP] := $2000000;
Background[EXCOMBOBOXLib_TLB.exHSThumbH] := $3000000;
ColumnAutoResize := False;
(IUnknown(Columns.Add('S')) as EXCOMBOBOXLib_TLB.Column).Width := 483;
end
|
146
|
I've seen that you can change the visual appearance for the scroll bar. How can I do that
![](images/excomboboxq146.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXCOMBOBOXLib_TLB.exSBtn] := $1000000;
Background[EXCOMBOBOXLib_TLB.exSBtnP] := $2000000;
Background[EXCOMBOBOXLib_TLB.exSBtnH] := $3000000;
Background[EXCOMBOBOXLib_TLB.exHSBack] := $f0f0f0;
Background[EXCOMBOBOXLib_TLB.exVSBack] := $f0f0f0;
Background[Integer(EXCOMBOBOXLib_TLB.exScrollHoverAll) Or Integer(EXCOMBOBOXLib_TLB.exDateScrollThumb)] := $f0f0f0;
(IUnknown(Columns.Add('S')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E1')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E2')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E3')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E4')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
ColumnAutoResize := False;
end
|
145
|
Is there any option to highligth the column from the cursor - point
![](images/excomboboxq145.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXCOMBOBOXLib_TLB.exCursorHoverColumn] := $1000000;
(IUnknown(Columns.Add('S')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E1')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E2')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E3')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E4')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
end
|
144
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
![](images/excomboboxq144.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXCOMBOBOXLib_TLB.exSelBackColorFilter] := $1000000;
Background[EXCOMBOBOXLib_TLB.exSelForeColorFilter] := $1414ff;
(IUnknown(Columns.Add('Filter')) as EXCOMBOBOXLib_TLB.Column).DisplayFilterButton := True;
end
|
143
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
![](images/excomboboxq143.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
Background[EXCOMBOBOXLib_TLB.exDateHeader] := $1000000;
Background[EXCOMBOBOXLib_TLB.exDateTodayUp] := $1000000;
Background[EXCOMBOBOXLib_TLB.exDateTodayDown] := $2000000;
Background[EXCOMBOBOXLib_TLB.exDateScrollThumb] := $1000000;
Background[EXCOMBOBOXLib_TLB.exDateScrollRange] := $e6e6e6;
Background[EXCOMBOBOXLib_TLB.exDateSeparatorBar] := $e6e6e6;
Background[EXCOMBOBOXLib_TLB.exDateSelect] := $1000000;
with (IUnknown(Columns.Add('Date')) as EXCOMBOBOXLib_TLB.Column) do
begin
FilterType := EXCOMBOBOXLib_TLB.exDate;
DisplayFilterButton := True;
DisplayFilterDate := True;
end;
end
|
142
|
How do I change the visual aspect of the close button in the filter bar, using EBN
![](images/excomboboxq142.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXCOMBOBOXLib_TLB.exFooterFilterBarButton] := $1000000;
(IUnknown(Columns.Add('Filter')) as EXCOMBOBOXLib_TLB.Column).FilterType := EXCOMBOBOXLib_TLB.exBlanks;
ApplyFilter();
end
|
141
|
How do I change the visual aspect of buttons in the cell, using EBN
![](images/excomboboxq141.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
Background[EXCOMBOBOXLib_TLB.exCellButtonUp] := $1000000;
Background[EXCOMBOBOXLib_TLB.exSizeGrip] := $2000000;
SelForeColor := RGB(0,0,0);
ShowFocusRect := False;
(IUnknown(Columns.Add('Column 1')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exCellHasButton] := OleVariant(True);
Items.AddItem('Button 1');
Items.AddItem('Button 2');
Columns.Add('Column 2');
end
|
140
|
How do I change the visual aspect of the drop down filter button, using EBN
![](images/excomboboxq140.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXCOMBOBOXLib_TLB.exHeaderFilterBarButton] := $1000000;
(IUnknown(Columns.Add('Filter')) as EXCOMBOBOXLib_TLB.Column).DisplayFilterButton := True;
end
|
139
|
Is there any function to get the control's data in your x-script format / template
![](images/excomboboxq139.png)
with ComboBox1 do
begin
Columns.Add('Column');
Items.AddItem('ToTemplate()');
end
|
138
|
How do I enable resizing the columns at runtime
![](images/excomboboxq138.png)
with ComboBox1 do
begin
ColumnsAllowSizing := True;
MarkSearchColumn := False;
HeaderVisible := False;
Columns.Add('Column 1');
Columns.Add('Column 2');
DrawGridLines := EXCOMBOBOXLib_TLB.exVLines;
with Items do
begin
CellCaption[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'Sub Item 1';
end;
with Items do
begin
CellCaption[OleVariant(AddItem('Item 2')),OleVariant(1)] := 'Sub Item 2';
end;
end
|
137
|
How do I enable resizing ( changing the height ) the items at runtime
![](images/excomboboxq137.png)
with ComboBox1 do
begin
ItemsAllowSizing := EXCOMBOBOXLib_TLB.exResizeItem;
ScrollBySingleLine := True;
Columns.Add('Column');
Items.AddItem('Item 1');
with Items do
begin
ItemHeight[AddItem('Item 2')] := 48;
end;
Items.AddItem('Item 3');
end
|
136
|
How can I sort by multiple columns
![](images/excomboboxq136.png)
with ComboBox1 do
begin
SingleSort := False;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortDescending;
(IUnknown(Columns.Add('C3')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortAscending;
end
|
135
|
How can I add several columns to control's sort bar
![](images/excomboboxq135.png)
with ComboBox1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortDescending;
end
|
134
|
How can I change the width of the columns being displayed in the sort bar
![](images/excomboboxq134.png)
with ComboBox1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(IUnknown(Columns.Add('C1')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXCOMBOBOXLib_TLB.Column).SortOrder := EXCOMBOBOXLib_TLB.SortDescending;
end
|
133
|
How can I change the height of the sort bar's
![](images/excomboboxq133.png)
with ComboBox1 do
begin
SortBarVisible := True;
SortBarHeight := 48;
end
|
132
|
How can I change the sort bar's foreground color
![](images/excomboboxq132.png)
with ComboBox1 do
begin
SortBarVisible := True;
ForeColorSortBar := RGB(255,0,0);
end
|
131
|
How can I change the visual appearance of the control's sort bar, using EBN files
![](images/excomboboxq131.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
SortBarVisible := True;
BackColorSortBar := $1000000;
BackColorSortBarCaption := $2000000;
Appearance := EXCOMBOBOXLib_TLB.None2;
end
|
130
|
How can I change the sort bar's background color
![](images/excomboboxq130.png)
with ComboBox1 do
begin
SortBarVisible := True;
BackColorSortBar := RGB(255,0,0);
BackColorSortBarCaption := RGB(128,0,0);
end
|
129
|
How can I change the default caption being displayed in the control's sort bar
![](images/excomboboxq129.png)
with ComboBox1 do
begin
SortBarVisible := True;
SortBarCaption := 'new caption';
end
|
128
|
How can I show the locked / fixed items on the bottom side of the control
![](images/excomboboxq128.png)
with ComboBox1 do
begin
ShowLockedItems := True;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib_TLB.exMiddle] := 2;
CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exMiddle,0]),OleVariant(0)] := 'locked item 1';
CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exMiddle,1]),OleVariant(0)] := 'locked item 2';
AddItem('un-locked item');
end;
end
|
127
|
How can I show the locked / fixed items
![](images/excomboboxq127.png)
with ComboBox1 do
begin
ShowLockedItems := True;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 2;
CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'locked item 1';
CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,1]),OleVariant(0)] := 'locked item 2';
AddItem('un-locked item');
end;
end
|
126
|
How can I hide the locked / fixed items
![](images/excomboboxq126.png)
with ComboBox1 do
begin
ShowLockedItems := False;
Columns.Add('Column');
with Items do
begin
LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 1;
CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'locked item';
AddItem('un-locked item');
end;
end
|
125
|
How can I show the control's sort bar
![](images/excomboboxq125.png)
with ComboBox1 do
begin
SortBarVisible := True;
end
|
124
|
How can I change the header's background color, when multiple levels are displayed
![](images/excomboboxq124.png)
with ComboBox1 do
begin
BackColorLevelHeader := RGB(250,0,0);
(IUnknown(Columns.Add('S')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXCOMBOBOXLib_TLB.Column).LevelKey := OleVariant(1);
end
|
123
|
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
![](images/excomboboxq123.png)
with ComboBox1 do
begin
ExpandOnSearch := True;
LinesAtRoot := EXCOMBOBOXLib_TLB.exLinesAtRoot;
AutoSearch := True;
(IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column).AutoSearch := EXCOMBOBOXLib_TLB.exContains;
with Items do
begin
InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text');
InsertItem(InsertItem(AddItem('text'),Null,'some text'),Null,'another text');
end;
end
|
122
|
Do you have some function to load data from a safe array
![](images/excomboboxq122.png)
with ComboBox1 do
begin
Columns.Add('Column');
Items.AddItem(OleVariant(0));
PutItems(GetItems(OleVariant(0)),Null);
end
|
121
|
Do you have some function to retrieve all items to a safe array
![](images/excomboboxq121.png)
with ComboBox1 do
begin
Columns.Add('Column');
Items.AddItem(OleVariant(0));
PutItems(GetItems(OleVariant(0)),Null);
Items.AddItem(OleVariant(1));
PutItems(GetItems(OleVariant(0)),Null);
Items.AddItem(OleVariant(2));
PutItems(GetItems(OleVariant(0)),Null);
Items.AddItem(OleVariant(3));
end
|
120
|
How can I hide a column
![](images/excomboboxq120.png)
with ComboBox1 do
begin
(IUnknown(Columns.Add('Hidden')) as EXCOMBOBOXLib_TLB.Column).Visible := False;
Columns.Add('2');
Columns.Add('3');
Columns.Add('4');
Columns.Add('5');
end
|
119
|
I've seen that the width of the tooltip is variable. Can I make it larger
![](images/excomboboxq119.png)
with ComboBox1 do
begin
ToolTipWidth := 328;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip that should be very very very very very very very long';
end
|
118
|
How do I disable showing the tooltip for all control
with ComboBox1 do
begin
ToolTipDelay := 0;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
117
|
How do I let the tooltip being displayed longer
![](images/excomboboxq117.png)
with ComboBox1 do
begin
ToolTipPopDelay := 10000;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
116
|
How do I show the tooltip quicker
![](images/excomboboxq116.png)
with ComboBox1 do
begin
ToolTipDelay := 1;
(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
115
|
How do I change the caption being displayed in the control's filter bar
![](images/excomboboxq115.png)
with ComboBox1 do
begin
FilterBarCaption := 'your filter caption';
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
114
|
How do I search case sensitive, using your incremental search feature
![](images/excomboboxq114.png)
with ComboBox1 do
begin
AutoSearch := True;
ASCIILower := '';
with Columns do
begin
(IUnknown(Add('exStartWith')) as EXCOMBOBOXLib_TLB.Column).AutoSearch := EXCOMBOBOXLib_TLB.exStartWith;
(IUnknown(Add('exContains')) as EXCOMBOBOXLib_TLB.Column).AutoSearch := EXCOMBOBOXLib_TLB.exContains;
end;
with Items do
begin
CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text';
end;
with Items do
begin
CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text';
end;
end
|
113
|
How do I disable the control
![](images/excomboboxq113.png)
with ComboBox1 do
begin
Enabled := False;
end
|
112
|
How do I enable the incremental search feature within a column
![](images/excomboboxq112.png)
with ComboBox1 do
begin
AutoSearch := True;
with Columns do
begin
(IUnknown(Add('exStartWith')) as EXCOMBOBOXLib_TLB.Column).AutoSearch := EXCOMBOBOXLib_TLB.exStartWith;
(IUnknown(Add('exContains')) as EXCOMBOBOXLib_TLB.Column).AutoSearch := EXCOMBOBOXLib_TLB.exContains;
end;
with Items do
begin
CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text';
end;
with Items do
begin
CellCaption[OleVariant(AddItem('text')),OleVariant(1)] := 'another text';
end;
end
|
111
|
How do I call your x-script language
![](images/excomboboxq111.png)
with ComboBox1 do
begin
with (IUnknown(ExecuteTemplate('Columns.Add(`Column`)')) as EXCOMBOBOXLib_TLB.Column) do
begin
HeaderStrikeOut := True;
HeaderBold := True;
end;
end
|
110
|
How do I call your x-script language
![](images/excomboboxq110.png)
with ComboBox1 do
begin
Template := 'Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`';
end
|
109
|
How do I show alternate rows in different background color
![](images/excomboboxq109.png)
with ComboBox1 do
begin
BackColorAlternate := RGB(240,240,240);
Columns.Add('Column');
with Items do
begin
AddItem('Item 1');
AddItem('Item 2');
AddItem('Item 3');
AddItem('Item 4');
AddItem('Item 5');
end;
end
|
108
|
How do I enlarge the drop down filter window
![](images/excomboboxq108.png)
with ComboBox1 do
begin
FilterBarDropDownHeight := '-320';
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterBarDropDownWidth := '-320';
end;
Items.AddItem('Item 1');
Items.AddItem('Item 2');
end
|
107
|
How do I filter programatically the control
![](images/excomboboxq107.png)
with ComboBox1 do
begin
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exPattern;
Filter := 'Item*';
end;
Items.AddItem('Item 1');
Items.AddItem('');
Items.AddItem('Item 2');
ApplyFilter();
end
|
106
|
How do I change the font of the control's filterbar
![](images/excomboboxq106.png)
with ComboBox1 do
begin
FilterBarFont.Size := 20;
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
105
|
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
![](images/excomboboxq105.png)
with ComboBox1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
FilterBarBackColor := $1000000;
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
104
|
How do I change the background color of the control's filterbar
![](images/excomboboxq104.png)
with ComboBox1 do
begin
FilterBarBackColor := RGB(240,240,240);
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
103
|
How do I change the foreground color of the control's filterbar
![](images/excomboboxq103.png)
with ComboBox1 do
begin
FilterBarForeColor := RGB(255,0,0);
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
102
|
How do I change the height of the control's filterbar
![](images/excomboboxq102.png)
with ComboBox1 do
begin
FilterBarHeight := 32;
with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXCOMBOBOXLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
101
|
How do I change the header's foreground color
![](images/excomboboxq101.png)
with ComboBox1 do
begin
HeaderForeColor := RGB(255,0,0);
Columns.Add('Column 1');
Columns.Add('Column 2');
Items.AddItem('Item 1');
end
|